list1 = [1, 2, 3]
list1.extend([4, 5, 6])  # 这相当于list1 = [1, 2, 3, 4, 5, 6]
print(list1)